﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NiconicoAPI {
    /// <summary>
    /// ユーザレベルを定義する列挙子です。
    /// </summary>
    public enum UserLevel {
        /// <summary>通常</summary>
        Normal = 0,
        /// <summary>プレミアム</summary>
        Premium = 1,
        /// <summary>TODO:なんだっけ</summary>
        Alert = 2,
        /// <summary>放送主</summary>
        Broadcaster = 3,
        /// <summary>運営</summary>
        Master = 6
    }

    /// <summary>
    /// コメント情報を保持するクラスです。
    /// </summary>
    public class Comment {
        //TODO:xml米
        public bool? IsAnonymity { get; private set; }
        /// <summary>
        /// 投稿日付
        /// </summary>
        public DateTime Date { get; private set; }
        /// <summary>
        /// コメント番号
        /// </summary>
        public int Number { get; private set; }
        public UserLevel? UserLevel { get; private set; }
        /// <summary>
        /// ユーザID
        /// </summary>
        public string UserID { get; private set; }
        /// <summary>
        /// コメント文
        /// </summary>
        public string Text { get; private set; }

        internal Comment(bool? isAnonymity, DateTime date, int number, UserLevel? userLevel, string userID, string text) {
            IsAnonymity = isAnonymity;
            Date = date;
            Number = number;
            UserLevel = userLevel;
            UserID = userID;
            Text = text;
        }
    }
}
